package com.sjtu.vfact;

import com.sjtu.vfact.textual.controller.MiningController;
import com.sjtu.vfact.visualization.controller.GraphController;

public class MainController {
	
	private MiningController miningController;
	private GraphController graphController;

	public static void main(String[] args) {
		MainController main = new MainController();
		main.start();
	}
	
	private void start(){
		miningController = new MiningController(this);
		miningController.start();
	}
	
	public MiningController getMiningController() {
		if(miningController == null){
			miningController = new MiningController(this);
		}
		return miningController;
	}

	public GraphController getGraphController() {
		if(graphController == null){
			graphController = new GraphController(this);
		}
		return graphController;
	}
	
}
